package com.bdqn.qnnews.wemedia.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 文章添加修改请求参数
 * @author xlzhang
 */
@Data
@Schema(name = "WmNewsVo 对象", description = "文章添加修改请求参数")
public class WmNewsVo {
    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "频道id")
    private Long channelId;

    @Schema(description = "标签")
    private String labels;
    
	// 前端发送的日期字符串格式与项目配置的全局样式不一致，这里做个性化处理
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",timezone = "GMT+8")
    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "文章封面类型  0 无图 1 单图 3 多图 -1 自动")
    private Byte type;

    @Schema(description = "状态 提交为1  草稿为0")
    private Byte status;
     
    @Schema(description = "封面图片列表 多张图以逗号隔开")
    private List<String> images;
}